package com.dgshanger.sanhxiaofeisc.mvp.contract;

import com.dgshanger.sanhxiaofeisc.entity.NearbyItemEntity;
import com.xx.baseuilibrary.mvp.lcec.BaseMvpLcecView;
import com.xx.baseutilslibrary.network.rx.XxBaseHttpObserver;

import java.util.List;

/**
 * Created by JacobHHH on 2018/5/4.
 */

public interface CategoryContract {

    interface View extends BaseMvpLcecView<List<NearbyItemEntity>> {

        void addData(List<NearbyItemEntity> data);

        void onDataFailure(String err);
    }

    interface Presenter{

        void loadData(boolean refresh,
                          String location_name, String sort_distance, String user_longitude,
                          String user_latitude, String page, String sort_new, String sort_comment,
                          String shop_name,String shop_cate_id);
    }

    interface Model{

        void loadData(String location_name, String sort_distance, String user_longitude,
                          String user_latitude, String page, String sort_new, String sort_comment,
                          String shop_name,String shop_cate_id,
                          XxBaseHttpObserver<List<NearbyItemEntity>> httpObserver);
    }


}
